import Ember from 'ember';

export default Ember.Component.extend({
  classNames: ['inline-item'],
  siblings: Ember.computed('model', function(){
    var node = this.get('model'),
        p = node.get('p');
    if (p) {
      return p.get('c').filter((it) => {
        return it !== node;
      });
    } else {
      return [];
    }
  }),
  actions: {
    click(node) {
      this.sendAction('action', node);
    }
  }
});
